package com.frxuexi.mynews.activity

import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.webkit.WebChromeClient
import android.webkit.WebViewClient
import com.alibaba.android.arouter.facade.annotation.Route
import com.frxuexi.mynews.R
import com.frxuexi.mynews.databinding.ActivityDetailWebBinding

@Route(path = "/app/DetailWebActivity")
class DetailWebActivity : AppCompatActivity() {
    lateinit var db:ActivityDetailWebBinding
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        db=ActivityDetailWebBinding.inflate(layoutInflater)
        setContentView(db.root)

        db.wv.loadUrl("https://www.baidu.com")
        /*db.wv.webChromeClient=object :WebChromeClient(){

        }*/
        //设置app内部打开网页
        db.wv.webViewClient=object :WebViewClient(){

        }
    }
}